package com.ls.business.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ls.business.mapper.ExpenseMapper;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("biz_expense")
public class Expense {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 报销编号
     */
    private String code;

    /**
     * 报销人名称
     */
    private String declarant;

    /**
     * 报销人id
     */
    private Integer declarantId;

    /**
     * 报销时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date reimbTime;
    /**
     * 报销类型
     */
    private String type;

    /**
     * 报销金额
     */
    private BigDecimal amount;

    /**
     * 报销说明
     */
    private String description;

    /**
     * 逻辑删除
     */
    private Integer deleted;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

}